<?php defined('MYLITS') ? '' : exit('No direct script access allowed'); ?>
<table>
    <tr>
        <th><?= Mylits_Language::getText('number') ?></th>
        <th><?= Mylits_Language::getText('language_code') ?></th>
        <th><?= Mylits_Language::getText('name') ?></th>
        <th><?= Mylits_Language::getText('action') ?></th>
    </tr>
    <?php if (isset($languages) && !empty($languages)): ?>
        <?php $no = 1 ?>
        <?php foreach ($languages as $lang): ?>
            <tr>
                <td><?= $no ?></td>
                <td><?= $lang['core_languages_code'] ?></td>
                <td><?= $lang['core_languages_name'] ?></td>
                <td></td>
            </tr>
            <?php $no++ ?>
        <?php endforeach; ?>
    <?php else: ?>
        <tr>
            <td colspan="4">
                <?= Mylits_Language::getText('no_data') ?>
            </td>
        </tr>
    <?php endif; ?>
</table>